package com.xinqizhi.mapper;

import com.xinqizhi.entity.XqzSchool;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface XqzSchoolMapper  {
    /**
     * 插入非空记录
     * @param school
     * @return
     */
    Boolean insertSelectData(XqzSchool school);

    /**
     * 插入一条记录
     * @param school
     * @return
     */
    Boolean insertData(XqzSchool school);

    /**
     * 获取所有记录
     * @return
     */
    List<XqzSchool> getAllData();

    /**
     * 获取一条记录
     * @return
     */
    List<XqzSchool> getData(Integer schoolId);

    /**
     * 修改一条记录
     * @param school
     * @return
     */
    Integer updateData(XqzSchool school);

    /**
     * 删除一条分校记录
     * @param schoolId
     * @return
     */
    Integer deleteData(Integer schoolId);
}
